
</html>
<!DOCTYPE html>
<html lang="zh">
<head>
 <meta charset="UTF-8">
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
 <meta http-equiv="X-UA-Compatible" content="ie=edge">
 <title></title>
 <script type="text/javascript">
  function detail(){
   var $uid=uid.value;
   // var $upwd=upwd.value;
   var xhr=new XMLHttpRequest();
   xhr.onreadystatechange=function(){
    if(xhr.readyState==4 && xhr.status==200){
     var r=xhr.responseText;
     d1.innerHTML=r;
    }
   }
   xhr.open("get",`/ajax/detail?uid=${$uid}`,true);
   xhr.send();
  }
 </script>
</head>
<body>
 <input type="text" id="uid">
 <br>
 <!-- <input type="text" id="upwd"> -->
 <br>
 <button onclick="detail()">查询 </button>
 <div id="d1"></div>
</body>
</html> 